package com.sunyard.enums;

/**
 * 指纹位置
 *
 */
public enum OperatorFingerEnum {

    FINGER_TYPE_ONE("1", "一号指纹"),
    FINGER_TYPE_TWO("2", "二号指纹"),
    FINGER_TYPE_THREE("3", "三号指纹");

    private final String code;
    private final String msg;

    OperatorFingerEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public static String getValue(String code) {
        OperatorFingerEnum[] businessModeEnums = values();
        for (OperatorFingerEnum operatorFingerEnum : businessModeEnums) {
            if (operatorFingerEnum.getCode().equals(code)) {
                return operatorFingerEnum.getMsg();
            }
        }
        return null;
    }
}
